@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  body {
    @apply font-light antialiased;
  }

  .input {
    @apply block w-full rounded-md border border-zinc-300 px-3 py-2 font-light placeholder-zinc-400 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 dark:border-zinc-700 dark:bg-zinc-600 sm:text-sm;
  }

  .form {
    @apply flex max-w-lg flex-col gap-1 md:gap-2;
  }

  .label {
    @apply block text-sm font-medium text-zinc-700 dark:text-zinc-200;
  }

  .btn {
    @apply inline-flex items-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2;
  }

  .btn-secondary {
    @apply border-indigo-600 bg-white text-indigo-600 hover:border-indigo-700 hover:bg-zinc-100 hover:text-indigo-700;
  }

  .btn-red-bg {
    @apply border-white bg-transparent;
  }

  .btn-danger {
    @apply inline-flex items-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2;
  }

  h1 {
    @apply mb-1 mt-2 text-3xl font-bold md:mb-2 md:mt-4;
  }

  h2 {
    @apply mb-1 mt-2 text-2xl font-bold md:mb-2 md:mt-4;
  }

  h3 {
    @apply mb-1 mt-2 text-xl font-bold md:mb-2 md:mt-4;
  }

  .markdown {
    ul {
      @apply list-inside list-disc;
    }

    ol {
      @apply list-inside list-decimal;
    }
  }

  .card {
    @apply divide-y divide-zinc-200 overflow-hidden rounded-lg bg-white shadow;
  }
}
